﻿<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
    <div id="container" style="height: 100%"></div>
    <!--<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>-->
    <script src="../js/echarts.min.js"></script>
    <script type="text/javascript">

           var dom = document.getElementById("container");
           var myChart = echarts.init(dom);
           var app = {};
           option = null;
           option = {
               title: {
                   text: '省份平均分'
               },
               tooltip: {
                   trigger: 'axis'
               },
               legend: {
                   data: ['平均分']
               },
               grid: {
                   left: '3%',
                   right: '4%',
                   bottom: '2%',
                   containLabel: true
               },
               toolbox: {
                   show: true,
                   feature: {
                       dataZoom: {
                           yAxisIndex: 'none'
                       },
                       dataView: { readOnly: false },
                       magicType: { type: ['line', 'bar'] },
                       restore: {},
                       saveAsImage: {}
                   }
               },
               xAxis: {
                   type: 'category',
                   boundaryGap: false,
                   axisLabel: {
                       show: true,
                       interval: 0,
                       rotate: 45,
                   },
                   //data: ["北京市","天津市","上海市","重庆市","河北省","山西省","辽宁省","吉林省","黑龙江省","江苏省",
                   //    "浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","海南省",
                   //    "四川省","贵州省","云南省","陕西省","甘肃省","青海省","台湾省","内蒙古自治区","广西壮族自治区","西藏自治区",
                   //    "宁夏回族自治区", "新疆维吾尔自治区", "香港特别行政区", "澳门特别行政区"]
                   data: window.parent.CountMapText
               },
               yAxis: {
                   type: 'value'
               },
               series: [
                   {
                       name: '平均分',
                       type: 'line',
                       stack: '总量',
                       //data: [86.4, 90, 76, 83.9, 79, 82, 75, 90, 81, 88, 76, 92, 76, 86, 86.4, 90, 76, 83.9, 79, 82, 75, 90, 81, 88, 76, 92, 76, 86, 84, 91, 76, 72, 85, 80]
                       data: window.parent.CountMapValue
                   }
               ]
           };
           ;
           if (option && typeof option === "object") {
               myChart.setOption(option, true);
           }
    </script>
</body>
</html>